import request from '@/utils/request'

// 查询利润账单列表
export function listProfit(query) {
  return request({
    url: '/finance/profit/list',
    method: 'get',
    params: query
  })
}

// 查询利润账单详细
export function getProfit(profitBillId) {
  return request({
    url: '/finance/profit/' + profitBillId,
    method: 'get'
  })
}

// 新增利润账单
export function addProfit(data) {
  return request({
    url: '/finance/profit',
    method: 'post',
    data: data
  })
}

// 修改利润账单
export function updateProfit(data) {
  return request({
    url: '/finance/profit',
    method: 'put',
    data: data
  })
}

// 删除利润账单
export function delProfit(profitBillId) {
  return request({
    url: '/finance/profit/' + profitBillId,
    method: 'delete'
  })
}
